package com.chixing.day07_adstract;

import com.chixing.day03_oop.Company;

public class Str {
    public int JobId;
    //所属公司
    public Company company;
    public java.lang.String JobName;


    public Str(int i) {

    }

    public int getJobId() {
        return JobId;
    }

    public void setJobId(int jobId) {
        JobId = jobId;
    }

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public String getJobName() {
        return JobName;
    }

    public void setJobName(String jobName) {
        JobName = jobName;
    }

    @Override
    public String toString() {   //重写了父类的tostring方法
        return "Str{" +
                "JobId=" + JobId +
                ", company=" + company +
                ", JobName='" + JobName + '\'' +
                '}';
    }

}
